<%--
  Created by IntelliJ IDEA.
  User: Jimmy
  Date: 2022/4/28
  Time: 17:11
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java"  isELIgnored="false" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>用户登录</title>
    <style type="text/css">
        body{
            background-image: url(../img/2.jpg);
        }
    </style>
</head>
<%
    //获取项目的路径
    String contextPath = request.getContextPath();
    System.out.println("contextPath = " + contextPath);
%>

<script src="<%=contextPath%>/js/jimmyhuang.js" type="text/javascript" charset="utf-8"></script>
<script src="<%=contextPath%>/js/login.js" type="text/javascript" charset="utf-8"></script>
<body onload="code()">

<form action="<%=contextPath%>/login" method="post" id="log">

    <fieldset id="">
        <legend><img src="<%=contextPath%>/img/user.gif" ><font size="5" color="black">用户登录</font></legend>

        <table border="0" cellpadding="10">
            <tr>
                <td><b>手机号/账号名*</b></td>
                <td colspan="2"><b><input size="40" type="text" name="phone" id="phone" value="" /></b></td>
                <td>格式：138XXXXXXXX</td>
            </tr>
            <tr>
                <td><b>登陆密码*</b></td>
                <td colspan="2"><b><input size="40" type="password" name="password" id="password" value="" /></b></td>
                <td>密码至少8位，由大写+小写字母+数字组成</td>
            </tr>
            <tr>
                <td><b>验证码*</b></td>
                <td><input type="text" id="vc" size="6" maxlength="6"/>&nbsp;
                    <input type="text" size="6" id="code" value="" readonly="readonly"/>
                    <a style="color: red;" onclick="code()">换一个</a>
                </td>
            </tr>
            <tr>
                <td></td>
                <td><input type="checkbox" name="remember" id="remember" value="" />在此电脑上记住用户名</td>
            </tr>
            <tr>
                <td></td>
                <td><input type="button" name="login" id="login" value="登   录" onclick="loginVerify()"/>&nbsp;&nbsp;&nbsp;
                    <input type="button" name="register" id="register" value="立即注册"  onclick="jumpToReg()" formtarget="_self"/></td>

            </tr>
        </table>
    </fieldset>
</form>
</body>
</html>

